package com.ff.discounts.component.tab.charge

import android.content.Context
import android.view.ViewGroup
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.QuickViewHolder
import com.ff.discounts.R
import com.ff.discounts.component.tab.home.HistoryData

/**
 *
 * @author: fufang
 * @date: 2023/10/19
 */
class RecommendAdapter : BaseQuickAdapter<HistoryData, QuickViewHolder>(){
    override fun onBindViewHolder(holder: QuickViewHolder, position: Int, data: HistoryData?) {
        data.let {
            holder.setText(R.id.name,"第一百集")
        }
    }

    override fun onCreateViewHolder(
        context: Context,
        parent: ViewGroup,
        viewType: Int
    ): QuickViewHolder {
        return QuickViewHolder(R.layout.item_home_goods,parent)
    }
}